package logrus.beanmock.invoker;

import java.lang.reflect.Method;

public class MockMethodInvoker extends AbstractMethodInvoker {

    private Object invocationResult;

    public MockMethodInvoker(Object invocationResult) {
        this.invocationResult = invocationResult;
    }

    @Override
    protected Object doInvoke(Object target, Method method, Object... args) throws Throwable {
        return invocationResult;
    }

}
